all:service client
service:service.cc echo.pb.cc
	g++ $^ -o $@ -std=c++17  -lbrpc -lleveldb -lssl -lcrypto -lprotobuf -lgflags -lspdlog -lfmt -letcd-cpp-api -lcpprest

client:client.cc echo.pb.cc
	g++ $^ -o $@ -g -std=c++17 -lbrpc -lleveldb -lssl -lcrypto -lprotobuf -lgflags -lspdlog -lfmt -letcd-cpp-api -lcpprest

.PHONY:clean
clean:
	rm -rf service client